package com.mt.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mt.pojo.CinemaSeat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Wang
 * @since 2020-12-11
 */
@Mapper
public interface CinemaSeatMapper extends BaseMapper<CinemaSeat> {

  boolean  batchInsertSeats(@Param("list") List<CinemaSeat> list,@Param("hallId") int hallId);
  boolean  changeStatusMultipleSeats(@Param("seatIds") List<Integer> seatIds, @Param("status") int status);

  List<CinemaSeat> pageSeatList(IPage<CinemaSeat> page, @Param("hallId") int hallId);
}
